from pydantic import BaseModel


class TestDetailIn(BaseModel):
    name: str = ''
    requestMethod: str = ''
    url: str = ''
    headers: dict = {}
    cookies: dict = {}
    requestParams: dict = {}
    checkHttpCode: str = ''
    httpCode: int = 0
    checkResponseData: dict = {}
    testResult: dict = {}
    testConclusion: str = ''
    checkResponseTime: float = 0
    responseTime: float = 0
    test_report_id: int = 0

class TestDetailCreate(TestDetailIn):
    pass


class TestDetailOut(TestDetailIn):
    id: int

    class Config:
        orm_mode = True
